import http from '@/utils/http'
// var http_url = 'https://3kf.com/api'
var http_url = box_info.m_dym_partner_api
// console.log(box_info);
// console.log(box_info.m_dym_channel_id, 'channel_id');
// console.log(box_info.m_dym_gm_static, 'gm_static');
// console.log(box_info.m_dym_partner_api, 'partner_api');
// console.log(box_info.m_dym_partner_static, 'partner_static');
// console.log(box.m_game_id, 'gameid');

const register = `${http_url}/register`

const login = `${http_url}/client/login`
const captchaimage = `${http_url}/captchaImage`
const category_list = `${http_url}/website/game/category/list`
const newest_list = `${http_url}/website/game/newest/list`
const filter_list = `${http_url}/website/game/filter/list`
const staff = `${http_url}/website/staff/list`
const article_category = `${http_url}/website/article/category/list`
const article_list = `${http_url}/website/article/list`
const article_search = `${http_url}/website/article/search`
const carousel = `${http_url}/website/carousel/list`
const advert = `${http_url}/website/advert/list`
const WX = `${http_url}/wechat/image/url`
const polling = `${http_url}/wechat/login/status`
const Collection = `${http_url}/version/collect`
const game_list = `${http_url}/website/game/info/list`
const getInfo = `${http_url}/getInfo`
const nick_name = `${http_url}/system/user/profile/nickname`
const SetUserPassword = `${http_url}/system/user/SetUserPassword`
const unboundPhones = `${http_url}/system/user/unboundPhones`
const boundPhones = `${http_url}/system/user/boundPhones`
const selectIdCardverifyByUserId = `${http_url}/member/idCardAudit/selectIdCardverifyByUserId`
const checknow = `${http_url}/member/idCardAudit/checknow`
const qrcode = `${http_url}/system/user/qrcode`
const status = `${http_url}/wechat/bind/status`
const message = `${http_url}/system/message/list`
const ratio = `${http_url}/payment/product/list`
const getPhoneCaptcha = `${http_url}/getPhoneCaptcha`
const getPhoneCaptchajbs = `${http_url}/phone/solution`
const updateUserPassword = `${http_url}/system/user/updateUserPassword`
const my_list = `${http_url}/version/collect/my/list`
const updateMemdel = `${http_url}/system/message/updateMemDel`
const updateRead = `${http_url}/system/message/updateRead`
const info = `${http_url}/system/user/profile/bind/info`
const wxyzm = `${http_url}/system/user/pwd/qrcode`
const PKcion = `${http_url}/external/order/PkCoin/list`
const menUserList = `${http_url}/external/order/score/menUserList`
const exchange = `${http_url}/external/order/exchange/menUserList`
const exchange_men = `${http_url}/external/order/exchange/menUserList`
const selectSginins = `${http_url}/selectSginin`
const PayQrcode = `${http_url}/pay/sm/qrcode`
const payOrder = `${http_url}/order/pay/time/list`
const loginLocation = `${http_url}/system/user/loginLocation`
const orderExchange = `${http_url}/order/exchange/list`
const Signin = `${http_url}/insertSignin`
const getSignin = `${http_url}/order/score/record/list`
const getCaptcha = `${http_url}/phone/captcha`
const phoneVerify = `${http_url}/phone/captcha/verify`
const weChatVerify = `${http_url}/system/user/pwd/qrcode`
const getWechatState = `${http_url}/wechat/set/pwd/status`
const phoneUpdatepassword = `${http_url}/system/user/updatepassword`
const weChatUpdatepassword = `${http_url}/system/user/profile/openid/set/pwd`
const paystatus = `${http_url}/pay/sm/status`
const userProfile = `${http_url}/system/user/profile`
const updateMemDel = `${http_url}/system/message/updateMemDel`
const getMessageSum = `${http_url}/system/message/messageSum`
const gameDetails = `${http_url}/website/game`
const gameCollect = `${http_url}/version/collect`
const postGameCollect = `${http_url}/version/collect`
const versionList = `${http_url}/part/list/version`
const cashBenefits = `${http_url}/cashBenefits`
const exchangeOrderStatus = `${http_url}/exchange/response`
const integralList = `${http_url}/order/score/record/list`
const orderScorelist = `${http_url}/order/score/list`
const PKorder = `${http_url}/order/pk/coin/list`
const getpkScoreBalance = `${http_url}/system/user/longUser/pkScoreBalance`
const exTipText = `${http_url}/system/user/setting/exTip`
const getexchange = `${http_url}/system/user/setting/exchange`
const Messageread = `${http_url}/system/message/read`
const prompt = `${http_url}/system/user/setting/prompt`
const GetTopUpAmount = `${http_url}/system/user/setting/topUp`
const getDailyGift = `${http_url}/order/daily/gift/getDailyGift`
const getIP = `${http_url}/check/ip/first`
const announcement = `${http_url}/external/announcement`
const profileavatar = `${http_url}/system/user/profile/avatar`
const Boxinformation = `${http_url}/box/setting/message`
const logout = `${http_url}/logout`
const profileAuth = `${http_url}/system/user/profile/auth`
const newcostId = `${http_url}/game/value`
const DelId = `${http_url}/game/value`
const sign = `${http_url}/wechat/image/sign`
const signstate = `${http_url}/in/game/member/sign`
const selectPayPoint = `${http_url}/pay/point/selectPayPoint`
const memReissue = `${http_url}/reissue/mem/reissue`
const memResponse = `${http_url}/reissue/mem/response`
const pkCoin = `${http_url}/wechat/image/pkCoin`
const scoreCoin = `${http_url}/wechat/image/score`
const conversionCode = `${http_url}/wechat/member/conversion`
const PopoverInformation = `${http_url}/external/member/popup/member`
const WechatMmessage = `${http_url}/external/wechat/unbind/tips`
const Unbindwechat = `${http_url}/wechat/unbind`
const box_logger = `${http_url}/register/logger`
const memUserLevel = `${http_url}/memUser/level`
const BagReceivingStatus = `${http_url}/order/daily/gift/response`
const paymentLimit = `${http_url}/external/member/payment/limit`
const giftTip = `${http_url}/system/user/setting/gift/tip`
const configurationname = `${http_url}/system/user/setting/loginParam`
const Mobilephoneswitch = `${http_url}/external/member/registerInfo/phone/switch`
const system_message = `${http_url}/system/message/list`
const Memberloginoption = `${http_url}/external/member/loginInfo/option`
const Boxactivereport = `${http_url}/system/box/liveness`
const Combinedaccount = `${http_url}/external/merge/member`
const Version = `${http_url}/version/recent/list`
const AddVersion = `${http_url}/version/recent`
const DelVersion = `${http_url}/version/recent`
const Gamebind = `${http_url}/system/user/profile/auth/bind`
const PLbatch = `${http_url}/version/recent/batch`
const WelfareHall = `${http_url}/external/welfare/text`
const photoactivity = `${http_url}/site/homeActivity/box/list`
const drawUserNUM = `${http_url}/external/draw/activity/user/message/num`
const drawUsermoney = `${http_url}/external/draw/activity/money`
const drawUserrule = `${http_url}/external/draw/activity/rule`
const MembershipMultiplier = `${http_url}/external/home/page/member/ratio`

//抽奖规则
export const drawUserrules = () => { return http({ method: 'GET', url: drawUserrule }) }
//抽奖金额
export const drawUsermoneys = () => { return http({ method: 'GET', url: drawUsermoney }) }
//获取抽奖会员信息抽奖次数
export const drawUserNUMS = () => { return http({ method: 'GET', url: drawUserNUM }) }
// 活动照片信息
export const photoactivitys = () => { return http({ method: 'GET', url: photoactivity }) }
// 查询盒子福利大厅文本
export const WelfareHalls = value => { return http({ method: 'GET', url: WelfareHall, params: value }) }
// 查询最近在玩
export const Versions = value => { return http({ method: 'GET', url: Version, params: value }) }
//添加最近在玩
export const AddVersions = (data) => { return http({ method: 'POST', url: AddVersion, data }) }
//删除最近在玩
export const DelVersions = (params) => { return http({ method: 'DELETE', url: DelVersion + '/' + params }) }
// 会员登录选项开关
export const Memberloginoptions = () => { return http({ method: 'GET', url: Memberloginoption }) }
// 查询系统消息
export const system_messages = value => { return http({ method: 'GET', url: system_message, params: value }) }
// 礼包领取提示
export const giftTips = () => { return http({ url: giftTip, method: 'GET' }) }
// 会员是否过期
export const paymentLimits = () => { return http({ method: 'GET', url: paymentLimit }) }
// 盒子注册上报统计
export const box_loggers = (data) => { return http({ method: 'POST', url: box_logger, data }) }
//获取盒子弹窗信息
export const PopoverInformationS = () => { return http({ method: 'GET', url: PopoverInformation }) }
//获取兑换二维码状态
export const conversionCodes = (params) => { return http({ method: 'GET', url: conversionCode, params: params }) }
//PK币扫码兑换
export const pkCoins = (data) => { return http({ method: 'POST', url: pkCoin, data }) }
//积分扫码兑换
export const scoreCoins = (data) => { return http({ method: 'POST', url: scoreCoin, data }) }
// 补发订单返回状态
export const memResponses = (data) => { return http({ method: 'POST', url: memResponse, data }) }
// 会员自主补发
export const memReissues = (data) => { return http({ method: 'POST', url: memReissue, data }) }
// 查询会员可用消费积分
export const selectPayPoints = () => { return http({ method: 'GET', url: selectPayPoint }) }
// 注册游戏账号
export function newcostID (data) { return http({ url: newcostId, method: 'POST', data: data }) }
// 游戏账号注销
export function DelID (params) { return http({ url: DelId + '/' + params, method: 'DELETE', }) }
// 获取用户是否可以进入游戏
export const profileAuths = (params) => { return http({ method: 'GET', url: profileAuth + '/' + params }) }
// 退出登录
export const logouts = (data) => { return http({ method: 'POST', url: logout, data }) }
// 获取IP使用情况
export const getIPs = () => { return http({ method: 'GET', url: getIP }) }
// 领取每日礼包
export function getDailyGifts (data) { return http({ url: getDailyGift, method: 'POST', data }) }
// 查询充值金额
export const GetTopUpAmounts = () => { return http({ method: 'GET', url: GetTopUpAmount }) }
// 获取充值提示的文本
export const prompts = () => { return http({ method: 'GET', url: prompt }) }
// 一键已读
export const Messagereads = () => { return http({ method: 'PUT', url: Messageread }) }
// 获取兑换金额
export const getexchanges = () => { return http({ method: 'GET', url: getexchange }) }
// 兑换提示文本
export const exTipTexts = () => { return http({ method: 'GET', url: exTipText }) }
// 获取当前登录用户的积分，平台币，PK币
export const getpkScoreBalances = () => { return http({ method: 'GET', url: getpkScoreBalance }) }
// pk币兑换订单
export const PKorders = (params) => { return http({ method: 'GET', url: PKorder, params }) }
// 积分兑换订单查询
export const orderScorelists = (params) => { return http({ method: 'GET', url: orderScorelist, params }) }
// 积分获取记录
export const integralLists = (params) => { return http({ method: 'GET', url: integralList, params }) }
// 游戏兑换订单返回状态
export const exchangeOrderStatuss = (data) => { return http({ method: 'POST', url: exchangeOrderStatus, data }) }
// 游戏兑换
export const cashBenefitss = (data) => { return http({ method: 'POST', url: cashBenefits, data }) }
// 查询游戏收藏数量
export const versionLists = (params) => { return http({ method: 'GET', url: versionList + '/' + params }) }
// 游戏收藏
export const postGameCollects = (data) => { return http({ method: 'POST', url: postGameCollect, data }) }
// 查询游戏收藏数量
export const gameCollects = (params) => { return http({ method: 'GET', url: gameCollect + '/' + params }) }
// 查询游戏详情
export const gameDetailss = (params) => { return http({ method: 'GET', url: gameDetails + '/' + params }) }
// 查询会员未读消息
export const getMessageSums = () => { return http({ method: 'GET', url: getMessageSum }) }
// 修改删除我的消息标识
export const dateMemDels = (data) => { return http({ method: 'PUT', url: updateMemDel, data }) }
// 修改个人资料
export const userProfiles = (data) => { return http({ method: 'PUT', url: userProfile, data }) }
// 获取支付状态（轮询）
export const paystatuss = (data) => { return http({ method: 'POST', url: paystatus, data }) }
// 忘记密码微信修改密码
export const weChatUpdatepasswords = (data) => { return http({ method: 'POST', url: weChatUpdatepassword, data }) }
// 忘记密码手机号修改密码
export const phoneUpdatepasswords = (data) => { return http({ method: 'PUT', url: phoneUpdatepassword, data }) }
// 获取忘记密码微信扫码状态
export const getWechatStates = (params) => { return http({ method: 'GET', url: getWechatState, params: params }) }
// 手机号验证码验证
export const phoneVerifys = (data) => { return http({ method: 'POST', url: phoneVerify, data }) }
// 微信修改密码二维码
export const weChatVerifys = (data) => { return http({ method: 'POST', url: weChatVerify, data }) }
// 直接获取手机验证码
export const getCaptchas = (data) => { return http({ method: 'POST', url: getCaptcha, data }) }
// 查询用户签到积分
export const getSignins = (params) => { return http({ method: 'GET', url: getSignin, params: params }) }
// 会员签到
export const Signins = () => { return http({ method: 'PUT', url: Signin }) }
//获取签到二维码
export const SignS = () => { return http({ method: 'GET', url: sign }) }
//获取签到二维码状态
export const SignState = (params) => { return http({ method: 'GET', url: signstate, params: params }) }
// 登陆地址记录查询（分页)
export const loginLocations = (params) => { return http({ method: 'GET', url: loginLocation, params: params }) }
// 用户充值订单查询（分页）
export const payOrders = (value) => { return http({ method: 'GET', url: payOrder, params: value }) }
// 会员平台币兑换订单（分页）
export const orderExchanges = (value) => { return http({ method: 'GET', url: orderExchange, params: value }) }
// 查询用户签到天数
export const selectSginin = () => { return http({ method: 'GET', url: selectSginins }) }
// 会员平台币兑换订单（分页）
export const exchange_mens = () => { return http({ method: 'GET', url: exchange_men }) }
// 会员平台币兑换订单
export const exchanges = () => { return http({ method: 'GET', url: exchange }) }
// 会员查询积分订单（分页）
export const menUserLists = () => { return http({ method: 'GET', url: menUserList }) }
// pk币兑换订单
export const PKcions = value => { return http({ method: 'GET', url: PKcion, params: value }) }
// 用户昵称修改
export const nickname = value => { return http({ method: 'POST', url: nick_name, data: { nickname: value } }) }
// 用户信息获取
export const getInfos = () => { return http({ method: 'GET', url: getInfo }) }
// 广告
export const adverts = () => { return http({ method: 'GET', url: advert }) }
// 轮播图
export const carousels = () => { return http({ method: 'GET', url: carousel }) }
// 文章列表（分类分页）
export const article_searchs = value => { return http({ method: 'GET', url: article_search, params: { pageNum: value.pageNum, pageSize: value.pageSize } }) }
// 文章列表
export const article_lists = () => { return http({ method: 'GET', url: article_list }) }
// 文章分类列表
export const article_categorys = () => { return http({ method: 'GET', url: article_category }) }
// 客服二维码
export const staffs = () => { return http({ method: 'GET', url: staff }) }
// 分类筛选所有游戏列表
export const filter_lists = value => { return http({ method: 'GET', url: filter_list, params: value }) }
// 最新游戏列表
export const newest_lists = value => { return http({ method: 'GET', url: newest_list, params: { pageNum: value.pageNum, pageSize: value.pageSize } }) }
// 游戏分类
export const category_lists = value => { return http({ method: 'GET', url: category_list, params: { pageNum: value.pageNum, pageSize: value.pageSize } }) }
// 微信修改密码
export const wxyzms = value => { return http({ method: 'POST', url: wxyzm, data: value }) }
// 获取手机验证码(绑定)
export const getPhoneCaptchas = value => { return http({ method: 'POST', url: getPhoneCaptcha, data: value }) }
// 获取手机验证码(解绑)
export const getPhoneCaptchajb = value => { return http({ method: 'POST', url: getPhoneCaptchajbs, data: value }) }
// 验证码
export const captchaImage = () => { return http({ method: 'GET', url: captchaimage }) }
// 会员登录注册
export const logins = (value) => { return http({ method: 'POST', url: login, data: value }) }
// 注册方法
export function register1 (data) { return http({ url: register, method: 'POST', data: data }) }
// 微信二维码
export const WX_login = value => { return http({ method: 'GET', url: WX, params: value }) }
// 微信轮询
export const WX_polling = value => { return http({ method: 'POST', url: polling, data: { sceneStr: value } }) }
// 游戏列表
export const game_lists = value => { return http({ method: 'GET', url: game_list, params: value }) }
// 获取用户绑定手机号、微信信息
export const infos = value => { return http({ method: 'GET', url: info, params: value }) }
// 游戏列表 收藏
export const Collections = value => { return http({ method: 'POST', url: Collection, data: value }) }
// 设置用户密码
export const SetUserPasswords = () => { return http({ method: 'PUT', url: SetUserPassword }) }
// 解绑手机号
export const unboundPhoness = (data) => { return http({ method: 'PUT', url: unboundPhones, data }) }
// 绑定手机号
export const boundPhoness = value => { return http({ method: 'PUT', url: boundPhones, data: value }) }
// 实名认证查询
export const selectIdCardverifyByUserIds = () => { return http({ method: 'POST', url: selectIdCardverifyByUserId }) }
// 实名认证
export const checknows = value => { return http({ method: 'POST', url: checknow, data: value }) }
// 绑定微信二维码
export const qrcodes = () => { return http({ method: 'GET', url: qrcode }) }
// 绑定微信二维码轮询
export const statuss = () => { return http({ method: 'GET', url: status }) }
// 查询系统消息
export const messages = value => { return http({ method: 'GET', url: message, params: value }) }
// 查询收藏
export const my_lists = value => { return http({ method: 'GET', url: my_list, params: value }) }
// 获取支付产品、充值赠送比例
export const ratios = (value) => { return http({ method: 'GET', url: ratio, params: value }) }
// 获取充值二维码
export const PayQrcodes = (data) => { return http({ method: 'POST', url: PayQrcode, data }) }
// 头像
export function uploadAvatar (data) { return http({ url: profileavatar, method: 'POST', data: data }) }
// 修改密码
export function updateUserPasswords (data) { return http({ url: updateUserPassword, method: 'PUT', data: data }) }
// 修改删除标识
export function updateMemDels (data) { return http({ url: updateMemdel, method: 'PUT', data: data }) }
// 修改已读未读状态
export function updateReads (data) { return http({ url: updateRead, method: 'PUT', data: data }) }
//查询盒子公告
export const announcements = value => { return http({ method: 'GET', url: announcement, params: value }) }
//获取盒子基本信息
export const Boxinformations = () => { return http({ method: 'GET', url: Boxinformation }) }
// 微信解绑提示信息
export function WechatMmessages () { return http({ url: WechatMmessage, method: 'GET' }) }
// 解绑微信
export function UnbindWechats () { return http({ url: Unbindwechat, method: 'GET' }) }
// 获取成长福利数据
export const memUserLevels = () => { return http({ method: 'GET', url: memUserLevel }) }
// 登录器配置名称
export const configurationnames = () => { return http({ method: 'GET', url: configurationname }) }
//每日礼包领取状态
export function BagReceivingStatusS (data) { return http({ url: BagReceivingStatus, method: 'POST', data: data }) }
// 手机注册开关
export const Mobilephoneswitchs = () => { return http({ method: 'GET', url: Mobilephoneswitch }) }
// 盒子活跃上报
export const Boxactivereports = (data) => { return http({ method: 'POST', url: Boxactivereport, data: data }) }
// 账号合并
export function Combinedaccounts (data) { return http({ url: Combinedaccount, method: 'POST', data: data }) }
//进入游戏效验开启状态
export const Gamebinds = () => { return http({ method: 'GET', url: Gamebind }) }
//进入游戏效验开启状态
export const PLbatchS = (data) => { return http({ method: 'POST', url: PLbatch, data: data }) }
//会员站倍率接口
export const MembershipMultipliers = () => { return http({ method: 'GET', url: MembershipMultiplier }) }